#pragma once

#include"Texture.h"


class TextureSection
{
private:
	unsigned int id;
	unsigned int TextureId;
	float left;
	float top;
	float bottom;
	float right;
	float width;
	float height;
public: 
	TextureSection();
	TextureSection(const TextureSection&);
	TextureSection(Texture*,int);
	TextureSection(Texture*, int, float left,float top,float bottom,float right);
	unsigned int MakeTextureSection(Texture*, int, float left,float top,float bottom,float right);
	bool DrawTextureSection(int X, int Y, GLfloat Scale = 1,GLfloat Rotation = 0, GLfloat red = 1.0f, GLfloat green = 1.0f, GLfloat blue = 1.0f);
	~TextureSection();
};